package com.ruoyi.system.api.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import java.util.Date;

/**
 * 救援任务对象 rescue_mission
 * 
 * @author ruoyi
 * @date 2024-09-09
 */
@Data
public class RescueMission extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单编号 */
    private Long orderDetailsId;

    /** 求助人id */
    @Excel(name = "求助人id")
    private Long uid;

    /** 救援类型（0 拖车、1 换胎、2 搭电） */
    @Excel(name = "救援类型", readConverterExp = "0=,拖=车、1,换=胎、2,搭=电")
    private Long typeOfRescue;

    /** 车牌 */
    @Excel(name = "车牌")
    private String plate;

    /** 省 */
    @Excel(name = "省")
    private String province;

    /** 市 */
    @Excel(name = "市")
    private String city;

    /** 区 */
    @Excel(name = "区")
    private String district;

    /** 救援位置 */
    @Excel(name = "救援位置")
    private String rescueLocation;

    /** 终点位置 */
    @Excel(name = "终点位置")
    private String endPoint;
    private User user;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date beginTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    /** 求助信息描述 */
    @Excel(name = "求助信息描述")
    private String description;

    /** 删除状态（0: 未删除, 1: 已删除） */
    @Excel(name = "删除状态", readConverterExp = "0=:,未=删除,,1=:,已=删除")
    private Long deleted;

    public void setOrderDetailsId(Long orderDetailsId) 
    {
        this.orderDetailsId = orderDetailsId;
    }

    public Long getOrderDetailsId() 
    {
        return orderDetailsId;
    }
    public void setUid(Long uid) 
    {
        this.uid = uid;
    }

    public Long getUid() 
    {
        return uid;
    }
    public void setTypeOfRescue(Long typeOfRescue) 
    {
        this.typeOfRescue = typeOfRescue;
    }

    public Long getTypeOfRescue() 
    {
        return typeOfRescue;
    }
    public void setPlate(String plate) 
    {
        this.plate = plate;
    }

    public String getPlate() 
    {
        return plate;
    }
    public void setProvince(String province) 
    {
        this.province = province;
    }

    public String getProvince() 
    {
        return province;
    }
    public void setCity(String city) 
    {
        this.city = city;
    }

    public String getCity() 
    {
        return city;
    }
    public void setDistrict(String district) 
    {
        this.district = district;
    }

    public String getDistrict() 
    {
        return district;
    }
    public void setRescueLocation(String rescueLocation) 
    {
        this.rescueLocation = rescueLocation;
    }

    public String getRescueLocation() 
    {
        return rescueLocation;
    }
    public void setEndPoint(String endPoint) 
    {
        this.endPoint = endPoint;
    }

    public String getEndPoint() 
    {
        return endPoint;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setDeleted(Long deleted) 
    {
        this.deleted = deleted;
    }

    public Long getDeleted() 
    {
        return deleted;
    }

    public Date getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderDetailsId", getOrderDetailsId())
            .append("uid", getUid())
            .append("typeOfRescue", getTypeOfRescue())
            .append("plate", getPlate())
            .append("province", getProvince())
            .append("city", getCity())
            .append("district", getDistrict())
            .append("rescueLocation", getRescueLocation())
            .append("endPoint", getEndPoint())
            .append("createTime", getCreateTime())
            .append("description", getDescription())
            .append("deleted", getDeleted())
                .append("beginTime", getBeginTime())
                .append("endTime", getEndTime())
            .toString();
    }
}
